package com.hr.edu.service.impl;

import java.util.List;

import com.hr.edu.dao.impl.EduDaoImpl;
import com.hr.edu.domain.Education;
import com.hr.edu.service.EduService;
import com.hr.user.domain.User;
import com.hr.utils.PageBean;

public class EduServiceImpl implements EduService{
	private EduDaoImpl eduDaoImpl = new EduDaoImpl();
	
	@Override
	public PageBean<Education> queryAll_Page(int PageCurrent, int PageSize) {
		return eduDaoImpl.queryAll_Page(PageCurrent, PageSize);
	}
	
	@Override
	public PageBean<User> queryAll_Page_User_ByEducation(int PageCurrent,int PageSize,String edu_id) { 
		return eduDaoImpl.queryAll_Page_User_ByEducation(PageCurrent, PageSize, edu_id);
	}
	
	@Override
	public PageBean<Education> queryAll_Page_User_ByUserId(int PageCurrent,int PageSize,String user_id) { 
		return eduDaoImpl.queryAll_Page_User_ByUserId(PageCurrent, PageSize, user_id);
	}
	
	@Override
	public Education findByeduID(String edu_id){
		return eduDaoImpl.findByEduID(edu_id);
	}

	@Override
	public void addEducation(Education education) {
		eduDaoImpl.addEducation(education);
	}
	
	@Override
	public List<Education> queryAllEdu() {
		// TODO Auto-generated method stub
		return eduDaoImpl.queryAllEducation();
	}
	
	@Override
	public void addEducationUser(String edu_id, String user_id) {
		// TODO Auto-generated method stub
		eduDaoImpl.addEducationUser(edu_id, user_id);
	}
	
	@Override
	public String findState(Education education,User user) {
		return eduDaoImpl.findState(education, user);
	}
	
	@Override
	public void deleteUserOwnEdu(String edu_id, String user_id) {
		// TODO Auto-generated method stub
		eduDaoImpl.deleteUserOwnEdu(edu_id,user_id);
	}
	
	@Override
	public void updateEducation(Education education) {
		// TODO Auto-generated method stub
		eduDaoImpl.updateEducation(education);
	}
	
	@Override
	public void deleteEdu(String edu_id) {
		// TODO Auto-generated method stub
		eduDaoImpl.deleteEducation(edu_id);
	}
	
	@Override
	public void updateEducationUser(String edu_id, String user_id) {
		// TODO Auto-generated method stub
		eduDaoImpl.updateEducationUser(edu_id, user_id);
	}
	
	@Override
	public void deleteUserEduRelationShip(String edu_id, String user_id) {
		// TODO Auto-generated method stub
		eduDaoImpl.deleteUserOwnEdu(edu_id, user_id);
	}
}
